﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="zc.aspx.cs" Inherits="zc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .auto-style1 {
        width: 50%;
        margin-left: 409px;
            height: 199px;
            margin-top: 16px;
        }
    .auto-style2 {
        height: 27px;
    }
    .auto-style3 {
            width: 174px;
        }
    .auto-style4 {
        width: 174px;
        height: 27px;
    }
    .auto-style5 {
        margin-left: 0px;
    }
        .auto-style6 {
            width: 174px;
            height: 29px;
        }
        .auto-style7 {
            height: 29px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label2" runat="server" Font-Size="Larger" ForeColor="Red" Text="新用户注册"></asp:Label>
<table class="auto-style1" aria-grabbed="undefined" >
    <tr>
        <td class="auto-style3" aria-grabbed="undefined">
            <asp:Label ID="Label3" runat="server" Text="用户名："></asp:Label>
        </td>
        <td style="text-align:left;" aria-grabbed="undefined">
            <asp:TextBox ID="TextBox1" runat="server" Width="284px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                runat="server" ControlToValidate="TextBox1" ForeColor="Red">
                *该项不能为空
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style3" aria-grabbed="undefined">
            <asp:Label ID="Label4" runat="server" Text="密码："></asp:Label>
        </td>
        <td style="text-align:left;" aria-grabbed="undefined">
            <asp:TextBox ID="TextBox2" runat="server" Width="284px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ForeColor="Red">*该项不能为空</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style4" aria-grabbed="undefined">
            <asp:Label ID="Label5" runat="server" Text="再次确认密码："></asp:Label>
        </td>
        <td class="auto-style2" style="text-align:left;" aria-grabbed="undefined">
            <asp:TextBox ID="TextBox3" runat="server" Width="284px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ForeColor="Red">*该项不能为空</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" 
                runat="server" ControlToCompare="TextBox2" 
                ControlToValidate="TextBox3" 
                ErrorMessage="CompareValidator" ForeColor="Red">
                *两次密码不一致
            </asp:CompareValidator>
        </td>
    </tr>
    &nbsp;<tr>
        <td class="auto-style3" aria-grabbed="undefined">
            <asp:Label ID="Label6" runat="server" Text="邮箱："></asp:Label>
            &nbsp;&nbsp;</td>
        <td style="text-align:left;" aria-grabbed="undefined">
            <asp:TextBox ID="TextBox4" runat="server" CssClass="auto-style5" Width="284px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" ForeColor="Red">*该项不能为空</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                runat="server" ControlToValidate="TextBox4" 
                ErrorMessage="RegularExpressionValidator" ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                *格式不正确
            </asp:RegularExpressionValidator>
        </td>
    </tr>
    &nbsp;<tr>
        <td class="auto-style6" aria-grabbed="undefined"></td>
        <td aria-grabbed="undefined" class="auto-style7"></td>
    </tr>
    &nbsp;<tr>
        <td class="auto-style3" aria-grabbed="undefined" >
            <asp:Button ID="Button1" runat="server" Text="注册"  OnClick="Button1_Click"/>
        </td>
        <td style="text-align:left;" aria-grabbed="undefined">
            <asp:Label ID="Label7" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>

